#!/usr/bin/env node

//this hook installs all your plugins

//var fs = require('fs');
//var path = require('path');
//var sys = require('sys')
//var exec = require('child_process').exec;
//
//var packageJSON = require('../../package.json');
//var pluginlist = packageJSON.cordovaPlugins || [];
//
//var localpluginlist = packageJSON.localPlugins || [];
//
//function puts(error, stdout, stderr) {
//    sys.puts(stdout)
//}
//
//pluginlist.forEach(function(plug) {
//    exec("cordova plugin add " + plug, puts);
//});
//
//var localPluginsDir = path.resolve(__dirname, '../../localplugins');
//localpluginlist.forEach(function(plug) {
//    console.log("plugn is "+plug)
//    exec("cordova plugin add " + path.join(localPluginsDir,plug), puts);
//});
